package com.spsoft.vatoutinv.service.vmsdifferentialcode.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.spsoft.vatoutinv.entity.vmsdifferentialcode.VmsDifferentialCode;
import com.spsoft.vatoutinv.entity.vmsdifferentialcode.VmsDifferentialCodeRInfo;
import com.spsoft.vatoutinv.service.vmsdifferentialcode.VmsDifferentialCodeRInfoService;
import com.spsoft.vatoutinv.mapper.VmsDifferentialCodeRInfoMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 12524
 * @description 针对表【VMS_DIFFERENTIAL_CODE_R_INFO(差额征税编码信息管理-历史记录-详细信息)】的数据库操作Service实现
 * @createDate 2024-03-26 16:49:26
 */
@Service
public class VmsDifferentialCodeRInfoServiceImpl extends ServiceImpl<VmsDifferentialCodeRInfoMapper, VmsDifferentialCodeRInfo>
        implements VmsDifferentialCodeRInfoService {

    @Override
    public List<VmsDifferentialCodeRInfo> getListByRId(Long id) {
        return list(new LambdaQueryWrapper<VmsDifferentialCodeRInfo>()
                .eq(VmsDifferentialCodeRInfo::getRid, id)
                .orderByDesc(VmsDifferentialCodeRInfo::getCreateTime)
        );
    }
}




